
import {Component} from 'react'
import Mouse from './mouse';
//import Mouse from './mouse'

class One extends Component{


    render(){
        return(
         <Mouse>
          <p>test</p>
         </Mouse>

        )

        {/* <div>
            <p>鼠标的位置:x:{this.props.x}--y:{this.props.y}</p>
          </div> */}

         {/* <div>
               <Mouse render={({x,y})=>{
                  console.log(x,y,"===>>")
                return <p>鼠标的位置：x: {x}--y:{y}</p>
               }}></Mouse>
            </div> */}
    }

}

export default One;